package com.zero.mapper;

import com.zero.entity.Condition;
import com.zero.entity.Loan;
import com.zero.entity.Pay;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface LoanMapper {

    int add(Loan loan);

    int delete(int id);

    int update(Loan loan);

    List<Loan> select(Loan loan);

    List<Loan> selectByCondition(Condition condition);

    Loan selectById(int id);

    List<Loan> selectByDate(Map map);
}

